using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace SBS_Map_Editor.MapClasses
{
    public class SegmentDefinition
    {
        #region Variables
        private string name;
        private int sourceIndex;
        private Rectangle srcRect;
        private Model model;
        private Vector2 position;
        private int flags;
        #endregion

        #region Properties
        public int Flags
        {
            get { return flags; }
            set { flags = value; }
        }

        public Vector2 Position { get; set; }
        public Model Model { get; set; }

        public Rectangle SourceRect
        {
            get { return srcRect; }
            set { srcRect = value; }
        }

        public int SourceIndex
        {
            get { return sourceIndex; }
            set { sourceIndex = value; }
        }

        public string Name
        {
            get { return name; }
            set { name = value; }
        }
        #endregion

        #region Constructor
        public SegmentDefinition(string _name, int _sourceIndex, Model _model, Vector2 _position, int _flags)
        {
            Name = _name;
            SourceIndex = _sourceIndex;
            Model = _model;
            Position = _position;
            Flags = _flags;
        }

        public SegmentDefinition(string _name, int _sourceIndex, Rectangle _srcRect, int _flags)
        {
            Name = _name;
            SourceIndex = _sourceIndex;
            SourceRect = _srcRect;
            Flags = _flags;
        }
        #endregion
    }
}